﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

public static class Compressor
{
    public static string IncludeJs(this HtmlHelper helper, string javascriptFile)
    {
#if DEBUG
        var subfolder = "debug";
#else    
      var subfolder = "release";    
#endif
        var path =
            string.Format(@"{0}Scripts/{1}/{2}.js", @"", subfolder, javascriptFile);
        return string.Format(@"<script type=""text/javascript"" src=""{0}""></script>", path);
    }
}
